<?php
require_once("config.php");

$username = "";
if (isset($_REQUEST["username"]))
{
	$username = $_REQUEST["username"];
}
$password = "";
if (isset($_REQUEST["password"]))
{
	$password = $_REQUEST["password"];
}
$email = "";
if (isset($_REQUEST["email"]))
{
	$email = $_REQUEST["email"];
}
$isFamily = "";
if (isset($_REQUEST["isFamily"]))
{
	$isFamily = $_REQUEST["isFamily"];
}

$sql = "insert into user(name, email, password, isFamily) values ('".$username."', '".$email."', '".$password."', '".$isFamily."')";
$db = mysql_query($sql) or die(mysql_error());
echo json_encode( "true");
?>